﻿using MES.Desktop.Entities;
using MES.Desktop.IDataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES.Desktop.DataAccess
{
    public class AuthAccess : AuthWebAccess, IAuthAccess
    {
        public AuthAccess(GlobalValues globalValues) : base(globalValues)
        {
        }

        public string AuthAccount(string user_json)
        {
            string uri = "/auth/Account";

            StringContent content = new StringContent(user_json);
            content.Headers.ContentType =
                new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");

            return this.Post(uri, content);
        }
    }
}
